package com.a918.service;

import com.a918.dto.ContentDto;
import com.a918.dto.FrontUnionDto;
import com.a918.entity.*;

import com.a918.entity.Content;
import com.a918.entity.Cover;
import com.a918.dto.CoverData;
import com.github.pagehelper.PageInfo;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

public interface FrontService {

    List<Cover> getAllCover();

    PageInfo<CoverData> getAllCoverData(@RequestParam Map<String, String> paramMap);

    String getCommonIntro(String type);

    Content getContentById(Integer id);

    Integer gettypeIdByCode(String type);

    List<FrontMember> getMemberByStatus(String status);

    void deleteCoverById(Integer id);

    void insertCover(Cover cover);

    Cover selectCoverById(Integer id);

    FrontUnion getContextById(Integer id);

    FrontMember getIntroductById(Integer id);

    User getNameById(Integer id);

    PageInfo<FrontUnionDto> getCheckedUnion();

    PageInfo<ContentDto> getCheckedContent(Map mapParameter);

    void UpdateViewnum(Content content);

    void deleteCoverByContentid(Integer id);

    List<Content> getRecommend(Map mapParameter);
}
